package com.example.eduorder.client;

import ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author wlg
 * @create_time 2021-09-13 下午 17:42
 * @function
 */
@Component
@FeignClient("service-edu")
public interface EduClient {

    //根据课程id查询课程信息（订单模块跨模块调用）
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);//@PathVariable("id")中要加参数id

}
